<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>OL</title>
    <link rel="stylesheet" href="lib/ol.css" type="text/css">
    <link rel="stylesheet" href="style/map.css" type="text/css">
    <script src="lib/ol.js"></script>
</head>
<body>
<div id="map" class="map"></div>
<script src="js/draw-tools.js"></script>
<script>
    let draw = new DrawTool(document.getElementById('map'))
    draw.drawPoint([300, 300], {fillColor: 'blue'})
    draw.drawLine([[100, 100], [200, 200]])
    draw.drawPolygon([[100, 200], [200, 200], [200, 300], [100, 200]])
    draw.drawImage([400, 400], './data/map.png', {scale: 0.5})
    draw.drawText([300, 300], 'Hello World')
</script>
</body>
</html>